import request from '@/utils/request'

// 查询防疫物资申领列表
export function listApplicationMaterials(query) {
  return request({
    url: '/rural/applicationMaterials/list',
    method: 'get',
    params: query
  })
}

// 查询防疫物资申领详细
export function getApplicationMaterials(id) {
  return request({
    url: '/rural/applicationMaterials/' + id,
    method: 'get'
  })
}

// 新增防疫物资申领
export function addApplicationMaterials(data) {
  return request({
    url: '/rural/applicationMaterials',
    method: 'post',
    data: data
  })
}

// 修改防疫物资申领
export function updateApplicationMaterials(data) {
  return request({
    url: '/rural/applicationMaterials',
    method: 'put',
    data: data
  })
}

// 删除防疫物资申领
export function delApplicationMaterials(id) {
  return request({
    url: '/rural/applicationMaterials/' + id,
    method: 'delete'
  })
}


// 确认防疫物资已到货
export function confirmApplicationMaterials(data) {
  return request({
    url: '/rural/applicationMaterials/confirm',
    method: 'put',
    data: data
  })
}
